﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;
using Konekcija.Core.Reporting.Dto.Application.Content;

namespace Konekcija.Core.Reporting.Mappings.Content
{
    public class ItemToCategoryMap : ClassMap<ItemToCategory>
    {
        public ItemToCategoryMap()
        {
            Schema("content");
            Table("ItemsToCategories");

            Id(x => x.Id).GeneratedBy.GuidComb().Not.Nullable();
            Map(x => x.ItemId).Not.Nullable();
            Map(x => x.CategoryId).Not.Nullable();
        }
    }
}
